
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/statics/layui/css/layui.css">
<%--    借助layui来帮忙改善页面美观--%>
</head>
<body>
     <form class="layui-form" method="post" action="/user/updateSave">
         <%--  隐藏表单       --%>
         <input type="hidden" name="id" value="${user.id}">
         <div class="layui-form-item">
             <label class="layui-form-label">姓名</label>
             <div class="layui-input-inline layui-input-wrap">
                 <input type="text" name="name" value="${user.name}" class="layui-input">
             </div>
         </div>
         <div class="layui-form-item">
             <label class="layui-form-label">密码</label>
             <div class="layui-input-inline layui-input-wrap">
                 <input type="text" name="pass" value="${user.pass}"  class="layui-input">
             </div>
         </div>

         <div class="layui-form-item">
             <div class="layui-input-block">
                 <button type="submit" class="layui-btn" lay-submit lay-filter="demo1">更新</button>
                 <button type="reset" class="layui-btn layui-btn-primary">重置</button>
             </div>
         </div>
     </form>
<%--发送后台必须的，请求发给servlet，新增查询删除进servlet，每次调用都要建新的servlet--%>
<%--更新是先显示，后提交保存--%>
</body>
</html>
